<%@ page import="com.google.appengine.api.users.*"%>
<%
    UserService userService = UserServiceFactory.getUserService();
    String thisURL = request.getRequestURI();
    if (request.getUserPrincipal() != null) {
      %>  
<p align="right">
  <%=request.getUserPrincipal().getName()%>
  <a href="<%=userService.createLogoutURL(thisURL)%>">abmelden</a>
</p>
<% } %>
